package com.nine.news.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: szhan
 * @Date: 2023/03/22/9:02 AM
 * @Description:
 */
@TableName("t_service_log")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ServerLog {
    /** 序号 */
   @TableId(type = IdType.AUTO)
    private Integer id ;
    /** 调用服务的用户id */

    private String phone ;
    /** 服务类型 */

    private Integer server ;

    /** 简介 */
    private String info;
    /** 单次服务价格 */

    private BigDecimal price ;
    /** 创建时间 */

    private Date createTime ;

    public ServerLog(String phone, Integer server, String info,BigDecimal price) {
        this.phone = phone;
        this.server = server;
        this.info = info;
        this.price = price;
        this.createTime = new Date();
    }
}
